import axios from './axios';
import {toast,messagebox} from 'mint-ui';
import qs from 'Qs';

let BASE_URL = process.env.API_HOST;
// // 请求首页广告图
// export const indexBanner = (data) => {
//     return axios.get(BASE_URL+'/advertisement/ad_list',{params:data});
// }

//- 请求预约门店列表
export const ShopBanner = (data) => {
    return axios.get(BASE_URL+'/Appointment/get_shop_list',{params:data});
}
//- 请求预约时间接口
export const appointTime = (data) => {
    return axios.get(BASE_URL+'/appointment/showtime',{params:data});
}
//- 请求预约时间技师接口
export const appointTechnician = (data) => {
    return axios.get(BASE_URL+'/appointment/last_get_employee_list',{params:data});
}
//- 请求预约项目数据
export const appointProject = (data) => {
    return axios.get(BASE_URL+'/appointment/project_list',{params:data});
}
//- 提交预约数据
export const submitappointment = (data) => {
    return axios.post(BASE_URL+'/appointment/appoint',qs.stringify(data));
}
//- 取消预约
export const cancelAppointment = (data) => {
    return axios.post(BASE_URL+'/appointment/cancel_appointment',qs.stringify(data));
}
